<template>
  <div>
    我是son2 》 son2也拿到了：{{ testData }},{{ testData2.value }},<son3 />
  </div>
</template>

<script>
import Son3 from "./Son3.vue";
export default {
  inject: ["testData", "testData2"],

  components: {
    Son3,
  },
  mounted() {
    console.log(this.testData2);
  },
};
</script>

<style>
</style>